﻿using Shop.RemoteModel.GoodsSpec.Model;

namespace Shop.RemoteModel.Goods.Model
{
    public class GoodsDetailed
    {
        public long Id { get; set; }
        /// <summary>
        /// 商品名
        /// </summary>
        public string GoodsName { get; set; }

        /// <summary>
        /// 商品封面图
        /// </summary>
        public string MainImg { get; set; }

        /// <summary>
        /// Spu
        /// </summary>
        public string GoodsSpu { get; set; }

        /// <summary>
        /// 类目ID
        /// </summary>
        public long CategoryId { get; set; }

        /// <summary>
        /// 品牌
        /// </summary>
        public string BrandName { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public GoodsStatus Status { get; set; }

        /// <summary>
        /// 类目名
        /// </summary>
        public string[] CategoryName { get; set; }

        /// <summary>
        /// 前台类目
        /// </summary>
        public string[] FrontCategory { get; set; }

        /// <summary>
        /// 应用的物流ID
        /// </summary>
        public long? LogisticsId { get; set; }

        /// <summary>
        /// 应用的物流名
        /// </summary>
        public string LogisticsName { get; set; }

        /// <summary>
        /// 是否为虚拟商品
        /// </summary>
        public bool IsVirtual { get; set; }

        /// <summary>
        /// 服务说明
        /// </summary>
        public GoodsServeShow[] ServerShow { get; set; }

        /// <summary>
        /// SKU列表
        /// </summary>
        public Dictionary<string, GoodsSkuDetailed> Sku { get; set; }
        /// <summary>
        /// 规格组
        /// </summary>
        public GoodsSpecGroup[] SpecGroup { get; set; }

        /// <summary>
        /// 规则状态
        /// </summary>
        public Dictionary<string, GoodsSpecState> SpecState { get; set; }
    }
    public class GoodsSpecState
    {
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public long[] SpecId { get; set; }
    }
}
